package com.tbdp.lsmp.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author xbkaishui
 * @version $Id: DateUtils.java, v 0.1 2017-12-03 下午3:01 xbkaishui Exp $$
 */
public class DateUtils {

    public static final String TIME_FORMAT_D = "yyyyMMdd";
    public static final String TIME_FORMAT_E = "yyyy年MM月dd日";
    public static final String TIME_FORMAT_F = "yyyyMMddHHmm";
    public static final String TIME_FORMAT_G = "yyyy年MM月dd日HH时mm分ss秒";
    public static final String TIME_FORMAT_H = "yyyy-MM-dd HH:mm";
    public static final String TIME_FORMAT_I = "HH:mm:ss";
    public static final String TIME_FORMAT_II = "HHmmss";


    public static String parseDate(Date date, String format) {
        SimpleDateFormat formate = new SimpleDateFormat(format);
        return formate.format(date);
    }

}
